<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/15
 * Time: 10:10
 */

namespace app\api\controller\v2;

use app\api\lib\exception\MissException;
use app\api\lib\exception\SuccessMessage;
use app\api\model\ChargeRule as ChargeRuleModel;

class DepositController extends BaseController
{
    public function depositRule()
    {
        $data = ChargeRuleModel::order(['id'=>'asc'])->select();
        if(!$data){
            throw new MissException(['msg'=>'请求数据不存在']);
        }
        throw new SuccessMessage(['data'=>$data]);
    }
}